Skip to content

Conversation

@camilamacedo86
Copy link
Contributor

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Copilot AI review requested due to automatic review settings December 24, 2025 12:01
@camilamacedo86 camilamacedo86 requested a review from a team as a code owner December 24, 2025 12:01
@openshift-ci openshift-ci bot requested review from bentito and tmshort December 24, 2025 12:01
@netlify
Copy link

netlify bot commented Dec 24, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 764dd60
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/6964d4b86165950008703f3b
😎 Deploy Preview https://deploy-preview-2411--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This comment was marked as outdated.

@camilamacedo86 camilamacedo86 changed the title 🌱 Add ci api diff WIP: 🌱 Add ci api diff Dec 24, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 24, 2025
Copilot AI review requested due to automatic review settings December 24, 2025 12:10
@camilamacedo86 camilamacedo86 changed the title WIP: 🌱 Add ci api diff WIP: 🌱 Add a Makefile target and start running the API diff linter as part of CI Dec 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.58%. Comparing base (b871e7e) to head (764dd60).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2411      +/-   ##
==========================================
- Coverage   69.61%   69.58%   -0.03%     
==========================================
  Files         100      100              
  Lines        7641     7641              
==========================================
- Hits         5319     5317       -2     
- Misses       1888     1889       +1     
- Partials      434      435       +1     
Flag Coverage Δ
e2e 46.85% <ø> (-0.03%) ⬇️
experimental-e2e 13.68% <ø> (ø)
unit 57.11% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@camilamacedo86 camilamacedo86 force-pushed the add-ci-api-diff branch 2 times, most recently from ea41264 to 1569876 Compare December 24, 2025 16:09
Copilot AI review requested due to automatic review settings December 24, 2025 16:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camilamacedo86 camilamacedo86 changed the title WIP: 🌱 Add a Makefile target and start running the API diff linter as part of CI (https://github.com/operator-framework/operator-controller/pull/2410) 🌱 Add a Makefile target and start running the API diff linter as part of CI Dec 24, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 24, 2025
@camilamacedo86 camilamacedo86 changed the title (https://github.com/operator-framework/operator-controller/pull/2410) 🌱 Add a Makefile target and start running the API diff linter as part of CI (Blocked operator-controller/pull/2410) 🌱 Add a Makefile target and start running the API diff linter as part of CI Dec 24, 2025
Copy link
Contributor

@pedjak pedjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how hard would, i.e. what is the effort to fix all api linter issues in single PR instead of introducing this logic to compare with the baseline?

@camilamacedo86
Copy link
Contributor Author

how hard would, i.e. what is the effort to fix all api linter issues in single PR instead of introducing this logic to compare with the baseline?

Very high — and it may never will be done. For example: It fails #2413. I raised for we discuss and based on the discussion it seems that we never will change.

Given that, there are many cases we might never want to fix, we will end up saying “this is expected” just to get the PR merged. Then it merges, and in the next round we will be expected to pass again anyway.

Copilot AI review requested due to automatic review settings January 5, 2026 23:54
@camilamacedo86 camilamacedo86 changed the title (Blocked operator-controller/pull/2410) 🌱 Add a Makefile target and start running the API diff linter as part of CI 🌱 Add a Makefile target and start running the API diff linter as part of CI Jan 5, 2026
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 9, 2026
@camilamacedo86 camilamacedo86 requested a review from pedjak January 10, 2026 07:53
@camilamacedo86
Copy link
Contributor Author

@pedjak @grokspawn
Could we receive an LGTM now?
WDYT? Good enough for we get merged this one?

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for all branches (needed for API diff)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is really needed now, given that we are going to fetch baseline in run.sh if it does not exist anyway?

Copy link
Contributor Author

@camilamacedo86 camilamacedo86 Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we must to have it to do the diff between main and pr branch.
Without it will not work and will fail

pull_request:

jobs:
lint-api-diff:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this job should not execute at all if a PR contains no changes in api folder at all. You can use dorny/paths-filter for that, see https://github.com/operator-framework/operator-controller/blob/main/.github/workflows/files-diff.yaml#L15

Copy link
Contributor Author

@camilamacedo86 camilamacedo86 Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged. I intentionally left the step enabled unconditionally to improve CI feedback and make failures easier to catch and address while this stabilizes.

If that’s a merge blocker from your POV, I can change it (it remains runnable locally).

My preference is to keep it always-on for now since it completes in under 2 minutes and simplifies validation.
Then, after we improve it we can change things out when we have fewer issues to get solved

Co-authored-by: Predrag Knezevic <[email protected]>
Copilot AI review requested due to automatic review settings January 12, 2026 10:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camilamacedo86 camilamacedo86 requested a review from pedjak January 12, 2026 10:46
Copilot AI review requested due to automatic review settings January 12, 2026 10:49
By Copilot:

When sourcing .bingo/variables.env, the file contains GOBIN=${GOBIN:=$(go env GOBIN)} which requires the go command to be available. While this works in CI after the setup-go step, the script might fail if run locally without Go in PATH. Consider adding a check that Go is available before sourcing, or handle the source operation with error checking using source .bingo/variables.env 2>/dev/null || true and validate the variable afterward.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@pedjak pedjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 12, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pedjak, tmshort

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copilot AI review requested due to automatic review settings January 12, 2026 11:02
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2026
@pedjak
Copy link
Contributor

pedjak commented Jan 12, 2026

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@openshift-merge-bot openshift-merge-bot bot merged commit 1fa4169 into operator-framework:main Jan 12, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants